package com.ych.modules.base.dbEntity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Author: Usopp.tsui
 * Date: 2020/12/21
 * Time: 11:21
 * Description:
 */
@Data
@TableName("t_sys_advertise")
@ApiModel(value = "TSysAdvertiseEntity", description = "数据库-广告表")
public class TSysAdvertiseEntity extends AbstractPageEntity {
    @TableId(value = "ad_id")
    @ApiModelProperty(value = "主键", dataType = "String", notes = "主键")
    private String adId;

    @TableField("type")
    @ApiModelProperty(value = "类型", dataType = "String", notes = "类型")
    private String type;

    @TableField("value")
    @ApiModelProperty(value = "值", dataType = "String", notes = "值")
    private String value;

    @TableField("ad_img_url")
    @ApiModelProperty(value = "广告图片URL", dataType = "String", notes = "广告图片URL")
    private String adImgUrl;

    @TableField("ad_img_name")
    @ApiModelProperty(value = "广告图片名称", dataType = "String", notes = "广告图片名称")
    private String adImgName;

    @TableField("status")
    @ApiModelProperty(value = "状态,0正常,1禁用", dataType = "String", notes = "状态,0正常,1禁用")
    private String status;

    @TableField("links_url")
    @ApiModelProperty(value = "外部链接URL", dataType = "String", notes = "外部链接URL")
    private String linksUrl;

    @TableField("level")
    @ApiModelProperty(value = "权重", dataType = "Integer", notes = "权重")
    private Integer level;

    @TableField("create_time")
    @ApiModelProperty(value = "创建时间", dataType = "Date", notes = "创建时间")
    private Date createTime;

    @TableField("publish_time")
    @ApiModelProperty(value = "上架时间", dataType = "Date", notes = "上架时间")
    private Date publishTime;

    @TableField("recall_time")
    @ApiModelProperty(value = "下架时间", dataType = "Date", notes = "下架时间")
    private Date recallTime;

    @TableField("url_type")
    @ApiModelProperty(value = "链接类型: 0:无,1外部跳转链接,2视频链接,3内部链接,4商品,5公告", dataType = "String", notes = "链接类型: 0:无,1外部跳转链接,2视频链接,3内部链接,4商品,5公告")
    private String urlType;

    @TableField("video_url")
    @ApiModelProperty(value = "视频链接URL", dataType = "String", notes = "视频链接URL")
    private String videoUrl;
}
